package com.guigu.tms.oms.service.impl;


import com.guigu.tms.oms.service.IRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;

@Service
public class CommandLineRunnerImpl implements CommandLineRunner {

    @Autowired
    private IRuleService ruleService;

    @Override
    public void run(String... args) throws Exception {
        ruleService.reload();
    }
}
